<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" id="css" href="/styles/front/css/members.css">
<script src="/styles/front/js/common.js" type="text/javascript"></script>
</head>
<body style="margin: 0px;"  >
<table  width="100%"  border="0" cellpadding="0" cellspacing="0" style='background: #fff;' align=center >
<tr>
<td style="padding:0 4px" valign=top>
		<SCRIPT LANGUAGE="JavaScript">
		var credits_remaining = 99; //need change
		var _cachehot = null;
		var _cacheuser = {'5':{'f':'8650','o':'50'},
			'6':{'f':'9.35/16.35','o':'1000'},
			'7':{'f':'43.5/76.5/121','o':'500'},
			'102':{'f':'89.5','o':'2000'},
			'101':{'f':'89.5','o':'2000'},
			'100':{'f':'89.5','o':'2000'},
			'98':{'f':'89.5','o':'2000'},
			'99':{'f':'89.5','o':'2000'},
			'106':{'f':'875','o':'100'},
			'105':{'f':'875','o':'100'},
			'104':{'f':'875','o':'100'},
			'103':{'f':'875','o':'100'},
			'97':{'f':'89.5','o':'2000'},
			'107':{'f':'380/760/1520/380','o':'100'}};
		var _cacheclass = {'1':{'id':'1','parentid':'0','classname':'二定位','leveid':'0','fuzhi_frank':'0','frank_limit_int':'98','odd_tiptop_int':'1000','odd_nape_tiptop_int':'4000','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'1','chuhuo_limit':'0','moneystat':'209173.5','huishuistat':'3107.6395','fuzhi':'5000000','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'0'},
							'4':{'id':'4','parentid':'0','classname':'三定位','leveid':'0','fuzhi_frank':'0','frank_limit_int':'960','odd_tiptop_int':'100','odd_nape_tiptop_int':'250','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'0.1','chuhuo_limit':'0','moneystat':'43071.91','huishuistat':'1388.18435','fuzhi':'10000000','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'0'},
							'5':{'id':'5','parentid':'0','classname':'四定位','leveid':'0','fuzhi_frank':'0','frank_limit_int':'8650','odd_tiptop_int':'50','odd_nape_tiptop_int':'600','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'0.1','chuhuo_limit':'0','moneystat':'92418.11','huishuistat':'3810.6454','fuzhi':'3000000','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'2000'},
							'6':{'id':'6','parentid':'0','classname':'二字现','leveid':'0','fuzhi_frank':'0','frank_limit_int':'9.35/16.35','odd_tiptop_int':'1000','odd_nape_tiptop_int':'22500','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'1','chuhuo_limit':'0','moneystat':'2051','huishuistat':'71.83','fuzhi':'50000000','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'2/2'},
							'7':{'id':'7','parentid':'0','classname':'三字现','leveid':'0','fuzhi_frank':'0','frank_limit_int':'43.5/76.5/121','odd_tiptop_int':'500','odd_nape_tiptop_int':'25000','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'1','chuhuo_limit':'0','moneystat':'590','huishuistat':'16.88','fuzhi':'4000000','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'20/20/20'},
							'102':{'id':'102','parentid':'1','classname':'口口XX','leveid':'1','fuzhi_frank':'0','frank_limit_int':'89.5','odd_tiptop_int':'2000','odd_nape_tiptop_int':'100000','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'1','chuhuo_limit':'0','moneystat':'113858.2','huishuistat':'1093.9145','fuzhi':'0','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'20'},
							'101':{'id':'101','parentid':'1','classname':'口X口X','leveid':'1','fuzhi_frank':'0','frank_limit_int':'89.5','odd_tiptop_int':'2000','odd_nape_tiptop_int':'100000','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'1','chuhuo_limit':'0','moneystat':'20436','huishuistat':'464.2385','fuzhi':'0','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'20'},
							'100':{'id':'100','parentid':'1','classname':'口XX口','leveid':'1','fuzhi_frank':'0','frank_limit_int':'89.5','odd_tiptop_int':'2000','odd_nape_tiptop_int':'100000','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'1','chuhuo_limit':'0','moneystat':'6846.4','huishuistat':'148.8055','fuzhi':'0','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'20'},
							'98':{'id':'98','parentid':'1','classname':'X口X口','leveid':'1','fuzhi_frank':'0','frank_limit_int':'89.5','odd_tiptop_int':'2000','odd_nape_tiptop_int':'100000','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'1','chuhuo_limit':'0','moneystat':'32006.6','huishuistat':'349.061','fuzhi':'0','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'20'},
							'99':{'id':'99','parentid':'1','classname':'X口口X','leveid':'1','fuzhi_frank':'0','frank_limit_int':'89.5','odd_tiptop_int':'2000','odd_nape_tiptop_int':'110000','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'1','chuhuo_limit':'0','moneystat':'14051.5','huishuistat':'219.0195','fuzhi':'0','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'20'},
							'106':{'id':'106','parentid':'4','classname':'口口口X','leveid':'1','fuzhi_frank':'0','frank_limit_int':'875','odd_tiptop_int':'100','odd_nape_tiptop_int':'2000','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'0.1','chuhuo_limit':'0','moneystat':'13835.2','huishuistat':'202.626','fuzhi':'0','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'200'},
							'105':{'id':'105','parentid':'4','classname':'口口X口','leveid':'1','fuzhi_frank':'0','frank_limit_int':'875','odd_tiptop_int':'100','odd_nape_tiptop_int':'2000','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'0.1','chuhuo_limit':'0','moneystat':'10077.45','huishuistat':'501.18975','fuzhi':'0','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'200'},
							'104':{'id':'104','parentid':'4','classname':'口X口口','leveid':'1','fuzhi_frank':'0','frank_limit_int':'875','odd_tiptop_int':'100','odd_nape_tiptop_int':'2000','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'0.1','chuhuo_limit':'0','moneystat':'12805.52','huishuistat':'600.1072','fuzhi':'0','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'200'},
							'103':{'id':'103','parentid':'4','classname':'X口口口','leveid':'1','fuzhi_frank':'0','frank_limit_int':'875','odd_tiptop_int':'100','odd_nape_tiptop_int':'2000','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'0.1','chuhuo_limit':'0','moneystat':'6353.74','huishuistat':'84.2614','fuzhi':'0','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'200'},
							'97':{'id':'97','parentid':'1','classname':'XX口口','leveid':'1','fuzhi_frank':'0','frank_limit_int':'89.5','odd_tiptop_int':'2000','odd_nape_tiptop_int':'100000','odd_nape_tiptop_yicang':'0','enterusercache':'0','money_least':'1','chuhuo_limit':'0','moneystat':'21974.8','huishuistat':'832.6005','fuzhi':'0','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'20'},
							'107':{'id':'107','parentid':'0','classname':'四字现','leveid':'0','fuzhi_frank':'0','frank_limit_int':'380/760/1520/380','odd_tiptop_int':'100','odd_nape_tiptop_int':'1200','odd_nape_tiptop_yicang':'0','enterusercache':'1','money_least':'1','chuhuo_limit':'0','moneystat':'155','huishuistat':'5.25','fuzhi':'300000000','franklimithig':'0','franklimithigshow':'0','xfrank_limit':'200/200/200/200'}};
 
 
		var _waitnumber = 0;
	
	</SCRIPT>
 
	<script src="/styles/front/js/ajax.js" type="text/javascript"></script>
	<script src="/styles/front/js/frank.js" type="text/javascript"></script>

		
		<table width="99%" border="0" cellpadding="0" cellspacing="0" class="soon_b" >
		<form method="POST" name="datamembers" id="datamembers" target="soonselectorder" action="kuanxuanxiazhu"  style="padding:0;margin:0">
		<input type="hidden" name="formhash" value="bd9113bf">
		<input type="hidden" name="selectnumber" value=""  id="selectnumber">
		<input type="hidden" name="post_number_money" >
		<input type="hidden" name="post_money" >
		<input type="hidden" name="selectnumbertotal_hidden" id="selectnumbertotal_hidden" >
		<input type="hidden" name="alltotalmoney" id="alltotalmoney" >
		
		<input type="hidden" name="action" >
		<input type="hidden" name="doaction" >
		<tr class="header_left_b">
		<td  >生成号码框</td>
		<tr>
		<td  style="height:280px" class="center" align=center valign=top>
		<div id="showselectnumber" class="showselectnumber">
 
		<div></td></tr>
		<tr><td></td></tr>
		</table><BR>
		<table width="99%" border="0" height=80 cellpadding="0" cellspacing="0" class="left_b" >
		<tr class="header_left_b">
		<td colspan="6" >发送框<INPUT TYPE="checkbox" style="display:none" ID="sizixian" NAME="sizixian"></td>
		<tr>
		<tr >
 
			<td width="40" class="number_web">金额</td>
			<td width="60" ><INPUT TYPE="text" NAME="money" ID="money" class="money_count money_1"   maxlength=8   onkeyup="totalmoney(this);"   onkeydown="if(event.keyCode==13){event.keyCode=0;event.returnValue=false;}"></td>
			<td width="90"><button TYPE="button" id="soonsendsubmit" name="soonsendsubmit" class="number_w"  onclick="javascript:if(window.confirm('现在已用是“'+credits_use+'”，下注后已用应是“'+credits_use_all+'”。\n下注完成后请在会员信息里再次核对已用额度！')){soonsend(this);return false;}else return;">下注</button>&nbsp;&nbsp;<button TYPE="button" id="soondelsubmit" name="soondelsubmit" class="number_w" onClick="soondel();return false;">删除</button>
			</td>
			<td width="*">
			笔数:<span id="selectnumbertotal"></span><BR>金额:<span id="selectnumbermoney"></span></td>
		<tr>
		</form>
		</table>
		<script type="text/javascript">
		
		var credits = '99'
			var credits_use = '1'
			function soonsend(tt){
				var s,n_m='',allmoney;
				
				allmoney = Math.floor($("alltotalmoney").value);
				
				if(credits<=0){
					alert("信用额度不足，不能下注！!");return false;
				}else if(allmoney > credits){
					alert("信用额度不足，不能下注！");
					$('money').select();
					return false;				
				}
				s = $("selectnumber").value;
				m = $("money").value;
				var s_arr = s.split(",");
				var get_number_award = s_arr[0];
				var get_money_award = m;
 
				if(frank.__CheckMoney(get_money_award,get_number_award)==false)return false;	
				if(frank.__CheckMoneyLeast(get_money_award)==false)return false;
 
				if(m==''|| m==0){
					alert("请填写金额！");
					$('money').select();
					return false;
				}else if(s !=""){
					/*var comm="";
					for (var i in s_arr )
					{
						n_m+=comm+s_arr[i];
						comm="|";
					}*/
					n_m=s;
 
					datamembers.target='soonselectorder';
					datamembers.post_number_money.value=n_m;
					datamembers.post_money.value=m;
 
					datamembers.action.value='soonselectnumber';
					datamembers.doaction.value='soonselectnumber';
 
					datamembers.submit();
				}else{
					alert("请在右边生成号码！");
				}
				tt.disabled=true;
			}
			var __delid=new Array();
			function _d(id){
				if($("d"+id).className!=''){
					$("d"+id).className='';
					var getdelid=new Array();
					for( i = 0 ; i < __delid.length; i++ ){
						if(__delid[i]!=id){
							getdelid[i]=__delid[i];
						}
					}
					__delid = getdelid;
				}else{
					$("d"+id).className='del';
					__delid[__delid.length]='n'+id;
				}
			}
			function soondel(){
				var s,n_m='',numberstr,__selectnumbertotal=0,shownumber='';
				var __selectnumber = new Array(),numberdel='';
				s = $("selectnumber").value;
				//s = getcookie('my_selectnumber');
				var s_arr = s.split(",");
				var comm="",comm_2='';
				var k = s_arr.length;
				for (var ii=0;ii<k;ii++ )
				{
					numberstr = s_arr[ii];
					if(checkdel('n'+numberstr)){
						shownumber += '<li id="d'+numberstr+'" onclick="_d(\''+numberstr+'\');">'+ numberstr + '</li>';
						__selectnumber[__selectnumbertotal]=numberstr;
						__selectnumbertotal++;
					}else{
						numberdel += comm_2+""+s_arr[ii];
						comm_2=',';
					}
 
				}
 
				if(numberstr!=""){
					$("showselectnumber").innerHTML=shownumber;
					$("selectnumber").value=__selectnumber;
					$("selectnumbertotal").innerHTML=__selectnumbertotal;
					$("selectnumbertotal_hidden").value=__selectnumbertotal;
					//setcookie('my_selectnumber', __selectnumber);
				}
				XMLHttp.sendReq("POST","ajax.php?action=selectdel","post_number="+encodeURIComponent(numberdel)+"&sid=Vd0Kwb&inajax=1",post_selectMsg,"showorderhtml");
			}
			function checkdel(number){
				if(number=='n'){
					return false;
				}
				if(__delid.length<=0)return true;
				for( i = 0 ; i < __delid.length; i++ ){
					if(__delid[i]==number)return false;
				}
				return true;
			}
			function decimal(num,v)
			{
			    var vv = Math.pow(10,v);
			    return Math.round(num*vv)/vv;
			} 
			var credits_use_all=credits_use;
			function totalmoney(t){
 
				var money = (t.value * $("selectnumbertotal_hidden").value)+"";
				//alert(money)
				if(money.indexOf(".")!=-1){
					var m = money.split(".");
					money = m[0] + "." +  m[1].slice(0,2);
					money=decimal(money,1);
				}
				$("selectnumbermoney").innerHTML=money;
				$("alltotalmoney").value=money;
				credits_use_all = (credits_use-0)+(money-0);
			}
		
		soondel();
		
		</script>
		
	</td>
<tr>
</table>
<noscript><iframe src=*.html></iframe></noscript>
 
</body>
 
</html>

